package com.vito.demo.native.dao

import com.vito.demo.native.entity.User
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.stereotype.Repository

/**
 * Created by lingzhiyuan.
 * Date : 2016/11/15.
 * Time : 19:07.
 * Description:
 *
 */

@Repository
interface UserRepository : JpaRepository<User, Long> {

    /**
     * 根据名称获取用户
     * */
    fun findByName(name: String): List<User>?

}